package com.patelski.magic.controller;

import org.jboss.seam.annotations.Name;

import com.patelski.common.controller.AbstractEntityHomeImpl;
import com.patelski.magic.model.User;

@Name("userHome")
public class UserHome extends AbstractEntityHomeImpl<User> {

	private byte[] uploadPicture;

	@Override
	protected User createInstance() {
		User user = new User();
		return user;
	}

	public byte[] getUploadPicture() {
		return uploadPicture;
	}

	public void setUploadPicture(byte[] uploadPicture) {
		if (null != uploadPicture) {
			this.instance.setPicture(uploadPicture);
		}
		this.uploadPicture = uploadPicture;
	}
}